package com.zhf.tests;

import com.zhf.bean.Administrator;
import com.zhf.dao.AdministratorDaoImp;
import com.zhf.service.AdministratorService;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/10/16 23:01
 */
public class AdminTest {

    @org.junit.Test
    public void LoginTest(){
        AdministratorDaoImp administratorDaoImp=new AdministratorDaoImp();
        AdministratorService administratorService = new AdministratorService();
        Administrator administrator = new Administrator();
        administrator.setUserName("admin");
        administrator.setPassword("123456");
        Administrator admin = administratorService.LoginService(administrator);
        System.out.println("查询到的用户为："+admin);
    }

}
